package packets.s2cpackets;

import packets.SPacket;
import entities.Player;

/**
 * Represents the spawn point information for a player.
 * 
 * Sent by the server after login to specify the coordinates of the spawn
 * point (the point at which players spawn at, and which the compass points
 * to). It can be sent at any time to update the point compasses point at. 
 */
public class S0x06 extends SPacket {
	public S0x06(Player player) {
		super(0x06);
		addInt(player.spawnpoint().x);
		addInt(player.spawnpoint().y);
		addInt(player.spawnpoint().z);
	}

}
